package com.usian.consumerlogin.feign;

import com.usian.consumerlogin.pojo.Result;
import com.usian.model.Xzda;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("day08Category")
public interface FeignCategory {
    @RequestMapping("quiz/LatestQuiz")
    Result LatestQuiz();

    @RequestMapping("quiz/paperFindAll")
    Result paperFindAll(@RequestParam(value = "id") Integer id);

    @RequestMapping("xzda/xzdaAdd")
    Result xzdaAdd(@RequestBody Xzda xzda);

    @RequestMapping("xzda/zqdaById")
    Result zqdaById(@RequestBody Xzda xzda);

    @RequestMapping("xzda/tj")
    Result tj(@RequestBody Xzda xzda);

    @RequestMapping("xzda/selectBysort")
    Result selectBysort();
}
